package ru.dc.object.commands;

import ru.dc.Connection;
import ru.dc.object.ServerInfo;

import java.util.Date;

/**
 * <pre>
 * User: Penkov Vladimir
 * Date: 08.10.2010
 * Time: 16:07:40
 * </pre>
 */
public class Command {

    private String command;
    private ServerInfo serverInfo;
    private Date createDate = new Date();
    private Connection connection;

    public String getActualCommandName() {
        return "";
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public ServerInfo getServerInfo() {
        return serverInfo;
    }

    public void setServerInfo(ServerInfo serverInfo) {
        this.serverInfo = serverInfo;
    }

    public String generateCommand() {
        return command;
    }

    public void parseCommand() {
    }

    public Date getCreateDate() {
        return createDate;
    }

    public Connection getConnection() {
        return connection;
    }

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    @Override
    public String toString() {
        return "Command{" +
                "command='" + command + '\'' +
                ", serverInfo=" + serverInfo +
                '}';
    }
}
